Fix -maybe-get-prefix-title use of key-binding
authorJustin Burkett <justin@burkett.cc>
Tue, 4 Oct 2016 20:48:40 +0000 (16:48 -0400)
committerJustin Burkett <justin@burkett.cc>
Tue, 4 Oct 2016 20:48:40 +0000 (16:48 -0400)
key-binding doesn't work with all forms of key strings.

See #143

which-key.el

index 6e92281fd31565864c70f237c77fff3a04eb45c4..61ef9014a8a33d25f9ce22014c86aabe88df118d 100644 (file)
@@ -1303,7 +1303,7 @@ An empty stiring is returned if no title exists."
            (mode-alist (assq major-mode alist))
            (mode-res (when mode-alist
                        (assoc-string keys mode-alist)))
-           (binding (key-binding keys))
+           (binding (key-binding (kbd keys)))
            (alternate (when (and binding (symbolp binding))
                         (symbol-name binding))))
       (cond (mode-res (cdr mode-res))